{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
<script type="text/javascript">
    var primary_menu = "menu_1";
    var sub_menu = "menu_1_0";
</script>
<div class="col-md-12">
    <form action='' method='post' class="formSubmit">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <div class="panel-title"><h3>原辅料信息（每个原辅料自动分配编号YFL-001）</h3></div>
            <div class="panel-options">
                <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
            </div>
        </div>
        <div class="panel-body with-table">
            <table class="input_in table-detail">
                <tr>
                    <th colspan=2>化学品品名</th>
                    <td><input datatype="*" name='name' value='{{ m.name }}' type="text" placeholder="请输入"></td>
                    <th colspan=2>化学品别名</th>
                    <td><input datatype="*" name='chemicals_name' value='{{ m.chemicals_name }}' type="text" placeholder="请输入"></td>
                </tr>
               
                <tr>
                    <th colspan=2>CAS号</th>
                    <td><input datatype="*" name='cas' value='{{ m.cas }}' type="text" placeholder="请输入"></td>
                    <th colspan=2>物质形态</th>
                    <td>
                        <select name='physical_form' data='{{ m.physical_form }}'>
                            <option value='气'>气</option>
                            <option value='液'>液</option>
                            <option value='固'>固</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th colspan=2>是否属危化品</th>
                    <td>
                        <select name='is_dangerous' data='{{ m.is_dangerous }}'>
                            <option value='是'>是</option>
                            <option value='否'>否</option>
                        </select>
                    </td>
                    <th colspan=2>是否为重点环境管理危险品</th>
                    <td>
                        <select name='is_emphasis' data='{{ m.is_dangerous }}'>
                            <option value='是'>是</option>
                            <option value='否'>否</option>
                        </select>
                    </td>
                    
                </tr>
                <tr>
                    <th colspan=2>使用量（t/a）</th>
                    <td><input datatype="n" name='input_amount' value='{{ m.input_amount }}' type="text" placeholder="请输入"></td>
                    <th colspan=2>循环使用量（t/a）</th>
                    <td><input datatype="n" name='usage_amount' value='{{ m.usage_amount }}' type="text" placeholder="请输入"></td>
                </tr>
                <tr>
                    <th colspan=2>运输方式</th>
                    <td><input datatype="*" name='input_mode' value='{{ m.input_mode }}' type="text" placeholder="请输入"></td>
                    <th colspan=2>贮存方式</th>
                    <td><input datatype="*" name='storage_mode' value='{{ m.storage_mode }}' type="text" placeholder="请输入"></td>
                </tr>
                <tr>
                    <th width="150" rowspan=2>系统内最大存量（t）</th>
                    <td width="50">生产区</td>
                    <td colspan="4"><input datatype="n" name='max_sto_amount' value='{{ m.max_sto_amount }}' type="text" placeholder="请输入"></td>
                </tr>
                <tr>
                    <td>贮存区</td>
                    <td colspan="4"><input datatype="n" name='max_input_amount' value='{{ m.max_input_amount }}'  type="text" placeholder="请输入"></td>
                </tr>
                
            </table>
        </div>
    </div>
    <div class="buttons">
        <!-- <input onclick="submitSave()" type="submit" class="btn btn-orange btn-lg" value="暂存"> -->
            <input class="btn btn-orange btn-lg" onclick="submitHold();" type='submit' value="暂存">
            <input class="btn btn-info btn-lg" type="submit" value="确认" />
        </div>
    </form>
</div>
{% endblock %}
{% block js %}
    <script type='text/javascript'>
        function submitHold(){
            demo.submitForm(true,"?key=hold");
            return false;
        }
    </script>
{% endblock %}